<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Schedulatore EDF: Riferimenti per la classe KiwiLogger</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generato da Doxygen 1.7.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Cerca');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pagina&nbsp;Principale</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classi</span></a></li>
      <li><a href="files.html"><span>File</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Cerca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Elenco&nbsp;dei&nbsp;tipi&nbsp;composti</span></a></li>
      <li><a href="classes.html"><span>Indice&nbsp;dei&nbsp;tipi&nbsp;composti</span></a></li>
      <li><a href="functions.html"><span>Membri&nbsp;dei&nbsp;composti</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Membri pubblici</a> &#124;
<a href="#pri-static-methods">Membri privati statici</a> &#124;
<a href="#pri-attribs">Attributi privati</a>  </div>
  <div class="headertitle">
<h1>Riferimenti per la classe KiwiLogger</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="KiwiLogger" -->
<p><code>#include &lt;<a class="el" href="_kiwi_logger_8h_source.html">KiwiLogger.h</a>&gt;</code></p>

<p><a href="class_kiwi_logger-members.html">Elenco di tutti i membri.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Membri pubblici</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kiwi_logger.html#afc6250d4f60ac159de4c3c488b1538be">KiwiLogger</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kiwi_logger.html#a6d37897b17aea4641242f53ae43baead">~KiwiLogger</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kiwi_logger.html#a3eb37ec72deb0034c78133b35a18745c">createOutput</a> (char *output_path)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kiwi_logger.html#a0f5c240f1478b127af733d0f3acecf77">closeOutput</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kiwi_logger.html#af1123083d07d19cb9d45c0e57766534b">logEvent</a> (timespec time, char *event_type, int task_id)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kiwi_logger.html#a66127a9785ed34bdca80ca934ba6e489">logCommand</a> (char *message)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kiwi_logger.html#a967950bb08f55ef4070e6fcefd4b5ed8">logNewTask</a> (int task_id)</td></tr>
<tr><td colspan="2"><h2><a name="pri-static-methods"></a>
Membri privati statici</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kiwi_logger.html#a3018cc8db840d0ebffa24680b3734187">KeBuffManager</a> (void *arg)</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Attributi privati</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#a290c812454ee753054e4cc4c0e502950">KePrQue</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kiwi_logger.html#a6da77d02dc2feacb3d232a3d52912593">m_keBuffer</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">coda con priorità per ottenere un output sempre corretto.  <a href="#a6da77d02dc2feacb3d232a3d52912593"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">pthread_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kiwi_logger.html#a412d11d4a82167e77e5d71e2edf0d357">m_thBuffThread</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">thread per lo svuotamento periodico del buffer in output.  <a href="#a412d11d4a82167e77e5d71e2edf0d357"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">pthread_cond_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kiwi_logger.html#ac3701de191793ed8f7c6640e76b38bea">m_cndBuffTimer</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">evento/timer per regolare lo svuotamento del buffer.  <a href="#ac3701de191793ed8f7c6640e76b38bea"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">pthread_mutex_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kiwi_logger.html#a62460029f0de33643958027c82c002c9">m_mKeBuffMutex</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Mutex per impedire l'immissione di messaggi durante lo svuotamento del buffer.  <a href="#a62460029f0de33643958027c82c002c9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">FILE *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kiwi_logger.html#ace2adc66e20b4090b751a62dcae249a6">m_flKiwiOutput</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">File handler dell'output per kiwi.  <a href="#ace2adc66e20b4090b751a62dcae249a6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kiwi_logger.html#a43d95f0eaa6cd19385ef2cbf9a03f100">m_isEnabled</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">indica se è possibile inserire o meno messaggi nel buffer.  <a href="#a43d95f0eaa6cd19385ef2cbf9a03f100"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Descrizione dettagliata</h2>
<p>Classe per la gestione di un file di log per kiwi. </p>
<hr/><h2>Documentazione dei costruttori e dei distruttori</h2>
<a class="anchor" id="afc6250d4f60ac159de4c3c488b1538be"></a><!-- doxytag: member="KiwiLogger::KiwiLogger" ref="afc6250d4f60ac159de4c3c488b1538be" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KiwiLogger::KiwiLogger </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6d37897b17aea4641242f53ae43baead"></a><!-- doxytag: member="KiwiLogger::~KiwiLogger" ref="a6d37897b17aea4641242f53ae43baead" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KiwiLogger::~KiwiLogger </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Documentazione delle funzioni membro</h2>
<a class="anchor" id="a0f5c240f1478b127af733d0f3acecf77"></a><!-- doxytag: member="KiwiLogger::closeOutput" ref="a0f5c240f1478b127af733d0f3acecf77" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KiwiLogger::closeOutput </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Finalizza il file di output corrente. </p>

</div>
</div>
<a class="anchor" id="a3eb37ec72deb0034c78133b35a18745c"></a><!-- doxytag: member="KiwiLogger::createOutput" ref="a3eb37ec72deb0034c78133b35a18745c" args="(char *output_path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KiwiLogger::createOutput </td>
          <td>(</td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>output_path</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Crea il file di output per kiwi. </p>
<dl><dt><b>Parametri:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>output_path</em>&nbsp;</td><td>percorso e nome del file che verrà creato. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a3018cc8db840d0ebffa24680b3734187"></a><!-- doxytag: member="KiwiLogger::KeBuffManager" ref="a3018cc8db840d0ebffa24680b3734187" args="(void *arg)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void * KiwiLogger::KeBuffManager </td>
          <td>(</td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>arg</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Gestore per lo svuotamento del buffer degli eventi. </p>
<dl><dt><b>Parametri:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>arg</em>&nbsp;</td><td>puntatore all'istanza di <a class="el" href="class_kiwi_logger.html">KiwiLogger</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a66127a9785ed34bdca80ca934ba6e489"></a><!-- doxytag: member="KiwiLogger::logCommand" ref="a66127a9785ed34bdca80ca934ba6e489" args="(char *message)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KiwiLogger::logCommand </td>
          <td>(</td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>message</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Registra un messaggio di controllo. </p>
<dl><dt><b>Parametri:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>message</em>&nbsp;</td><td>stringa contenente il messaggio. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af1123083d07d19cb9d45c0e57766534b"></a><!-- doxytag: member="KiwiLogger::logEvent" ref="af1123083d07d19cb9d45c0e57766534b" args="(timespec time, char *event_type, int task_id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KiwiLogger::logEvent </td>
          <td>(</td>
          <td class="paramtype">timespec&nbsp;</td>
          <td class="paramname"> <em>time</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>task_id</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Registra l'evento di un task. </p>
<dl><dt><b>Parametri:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>time</em>&nbsp;</td><td>istante temporale dell'evento. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>message</em>&nbsp;</td><td>stringa contenente il testo dell'evento. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>task_id</em>&nbsp;</td><td>ID del task che ha generato l'evento. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a967950bb08f55ef4070e6fcefd4b5ed8"></a><!-- doxytag: member="KiwiLogger::logNewTask" ref="a967950bb08f55ef4070e6fcefd4b5ed8" args="(int task_id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KiwiLogger::logNewTask </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>task_id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Notifica l'immissione di un nuovo task. </p>
<dl><dt><b>Parametri:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>task_id</em>&nbsp;</td><td>ID del task che verrà monitorato. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Documentazione dei dati membri</h2>
<a class="anchor" id="ac3701de191793ed8f7c6640e76b38bea"></a><!-- doxytag: member="KiwiLogger::m_cndBuffTimer" ref="ac3701de191793ed8f7c6640e76b38bea" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pthread_cond_t <a class="el" href="class_kiwi_logger.html#ac3701de191793ed8f7c6640e76b38bea">KiwiLogger::m_cndBuffTimer</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>evento/timer per regolare lo svuotamento del buffer. </p>

</div>
</div>
<a class="anchor" id="ace2adc66e20b4090b751a62dcae249a6"></a><!-- doxytag: member="KiwiLogger::m_flKiwiOutput" ref="ace2adc66e20b4090b751a62dcae249a6" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FILE* <a class="el" href="class_kiwi_logger.html#ace2adc66e20b4090b751a62dcae249a6">KiwiLogger::m_flKiwiOutput</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>File handler dell'output per kiwi. </p>

</div>
</div>
<a class="anchor" id="a43d95f0eaa6cd19385ef2cbf9a03f100"></a><!-- doxytag: member="KiwiLogger::m_isEnabled" ref="a43d95f0eaa6cd19385ef2cbf9a03f100" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="class_kiwi_logger.html#a43d95f0eaa6cd19385ef2cbf9a03f100">KiwiLogger::m_isEnabled</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>indica se è possibile inserire o meno messaggi nel buffer. </p>

</div>
</div>
<a class="anchor" id="a6da77d02dc2feacb3d232a3d52912593"></a><!-- doxytag: member="KiwiLogger::m_keBuffer" ref="a6da77d02dc2feacb3d232a3d52912593" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="types_8h.html#a290c812454ee753054e4cc4c0e502950">KePrQue</a> <a class="el" href="class_kiwi_logger.html#a6da77d02dc2feacb3d232a3d52912593">KiwiLogger::m_keBuffer</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>coda con priorità per ottenere un output sempre corretto. </p>

</div>
</div>
<a class="anchor" id="a62460029f0de33643958027c82c002c9"></a><!-- doxytag: member="KiwiLogger::m_mKeBuffMutex" ref="a62460029f0de33643958027c82c002c9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pthread_mutex_t <a class="el" href="class_kiwi_logger.html#a62460029f0de33643958027c82c002c9">KiwiLogger::m_mKeBuffMutex</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Mutex per impedire l'immissione di messaggi durante lo svuotamento del buffer. </p>

</div>
</div>
<a class="anchor" id="a412d11d4a82167e77e5d71e2edf0d357"></a><!-- doxytag: member="KiwiLogger::m_thBuffThread" ref="a412d11d4a82167e77e5d71e2edf0d357" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pthread_t <a class="el" href="class_kiwi_logger.html#a412d11d4a82167e77e5d71e2edf0d357">KiwiLogger::m_thBuffThread</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>thread per lo svuotamento periodico del buffer in output. </p>

</div>
</div>
<hr/>La documentazione per questa classe è stata generata a partire dai seguenti file:<ul>
<li>trunk/<a class="el" href="_kiwi_logger_8h_source.html">KiwiLogger.h</a></li>
<li>trunk/<a class="el" href="_kiwi_logger_8cpp.html">KiwiLogger.cpp</a></li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>Tutto</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classi</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>File</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Funzioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variabili</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Ridefinizioni di tipo (typedef)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Definizioni</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Generato il Fri Sep 10 2010 15:26:14 per Schedulatore EDF da&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
